package com.example.administrator.liveapp.aliyun;

import com.alivc.player.AliVcMediaPlayer;
import com.alivc.player.MediaPlayer;

/**
 * 信息状态监听事件（备注：根据业务需要实现）
 */

public class VideoInfoListener implements AliVcMediaPlayer.MediaPlayerInfoListener {
    @Override
    public void onInfo(int what, int extra) {
        switch (what)
        {
            case MediaPlayer.MEDIA_INFO_UNKNOW:
                // 未知
                break;
            case MediaPlayer.MEDIA_INFO_BUFFERING_START:
                // 开始缓冲
                break;
            case MediaPlayer.MEDIA_INFO_BUFFERING_END:
                // 结束缓冲
                break;
            case MediaPlayer.MEDIA_INFO_VIDEO_RENDERING_START:
                // 首帧显示时间
                break;
        }
    }
}
